#include "cppTutorPointersConst.h"

#include <iostream>

using namespace std;

CcppTutorPointersConst :: CcppTutorPointersConst ()
{
}

CcppTutorPointersConst :: ~CcppTutorPointersConst ()
{
}

void CcppTutorPointersConst :: m_PCConstPointer ()
{
	cout << "<-------- Const Pointer -------->" << endl;
	cout << "Enter a value" << endl;
	cin >> m_nPCValue;
	int *const npPtr = &m_nPCValue;
	int x = 10;
	*npPtr = x;
}

void CcppTutorPointersConst :: m_PCPointerToConst ()
{
	cout << "<-------- Const Pointer -------->" << endl;
	cout << "Enter a value" << endl;
	cin >> m_nPCValue;	
	const int *npPtr = &m_nPCValue;
	cout << "npPtr = " << npPtr << endl;
	//int x = 10;
}
